package com.lezhi.socialgram.enums;

/**
 * Created by daizhen on 2017/3/16.
 */
public enum ResultEnum {
    SUCCESS("0", "成功"),
    CHANGE_ACCOUNT_TOO_QUICK("10000", "账号切换太频繁"),
    AUTH_FAILED("10001", "认证失败用户名或密码错误"),
    PAY_FAIL("20002","生成交易失败"),
    ACCOUNT_LOCKED("10002", "账户被锁定"),
    ACCOUNT_IS_EXIST("10003", "账户已经被注册"),
    PARAM_NOT_ALLOWED("10004", "参数不合法"),
    INTERNAL_ERROR("10005", "系统繁忙，请稍后重试"),
    REG_VERIFY_SMS_MAX_COUNT("50001", "今日短信验证次数已经超过最大次数（7次）"),
    REG_VERIFY_SMS_TOO_QUICK("50003", "短信验证码获取太频繁，请等待"),
    REG_VERIFY_SMS_MISMATCH("50002", "验证码错误");

    private String code;

    private String message;

    ResultEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
